/* =========================================
   OAKSTONE FINANCIAL LTD
   MODERN DARK LUXURY THEME
========================================= */

:root {

    --bg-primary: #0f1115;
    --bg-secondary: #171a21;
    --bg-card: #1d212b;

    --text-primary: #f5f7fa;
    --text-secondary: #b7bcc8;
    --text-muted: #8d93a1;

    --accent: #d4af37;
    --accent-hover: #e5c766;

    --border: rgba(255,255,255,0.08);

    --shadow:
        0 10px 35px rgba(0,0,0,0.35);

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;

    --transition: 0.3s ease;

    --max-width: 1200px;
}

/* =========================================
   GLOBAL
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(
        180deg,
        #0f1115 0%,
        #141821 100%
    );

    color: var(--text-primary);

    font-family:
        Inter,
        system-ui,
        sans-serif;

    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

.About-Card h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h1 {
    letter-spacing: -0.02em;
    font-weight: 800;
}

h2 {
    font-weight: 750;
}

p {
    font-size: 1.05rem;
    line-height: 1.75;
}

p {
    color: var(--text-secondary);
}

ul {
    padding-left: 1.2rem;
}

li {
    color: var(--text-secondary);
}

/* =========================================
   HERO SECTION
========================================= */

.Hero {
    position: relative;
    overflow: hidden;
}

.Hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter:
        brightness(0.35)
        contrast(1.05);
}

/* Hero Overlay */

.Hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.75)
        );
}

/* Hero Content */

.Hero-Content {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

    width: 90%;
    max-width: 900px;

    text-align: center;
}

.Hero-Content h1 {

    font-size: clamp(2.5rem, 6vw, 5rem);

    margin-bottom: 1.5rem;

    color: white;

    text-shadow:
        0 5px 20px rgba(0,0,0,0.45);
}

.Hero-Content p {

    font-size: 1.2rem;

    max-width: 800px;

    margin: auto auto 2rem auto;

    color: rgba(255,255,255,0.9);
}

/* =========================================
   BUTTONS
========================================= */

.btn {

    display: inline-block;

    text-decoration: none;

    padding:
        1rem
        2rem;

    border-radius: 999px;

    font-weight: 600;

    transition: var(--transition);

    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {

    background: var(--accent);

    color: black;

    box-shadow:
        0 10px 25px rgba(212,175,55,0.25);
}

.btn--primary:hover {
    background: var(--accent-hover);
}

.btn--subtle {

    background: rgba(255,255,255,0.06);

    color: white;

    border: 1px solid var(--border);
}

.btn--subtle:hover {

    background: rgba(255,255,255,0.12);
}

/* =========================================
   ABOUT SECTION
========================================= */

#About {

    width: min(92%, var(--max-width));

    margin:
        80px auto;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.About-Card {

    position: relative;

    background:
        linear-gradient(
            180deg,
            rgba(32,37,48,0.95) 0%,
            rgba(24,28,37,0.98) 100%
        );

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 28px;

    padding:
        3.5rem
        clamp(2rem,4vw,4rem);

    overflow: hidden;

    box-shadow:
        0 15px 50px rgba(0,0,0,0.35);

    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.About-Card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(212,175,55,0.35);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.45),
        0 0 30px rgba(212,175,55,0.08);
}

.About-Card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );
}

.About-Card h2 {

    text-align: center;

    font-size:
        clamp(2rem,4vw,3rem);

    font-weight: 800;

    letter-spacing: -1px;

    color: white;

    margin-bottom: 2rem;
}

.About-Card h2::after {

    content: "";

    display: block;

    width: 70px;
    height: 4px;

    margin: 1rem auto 0;

    border-radius: 999px;

    background: var(--accent);
}

.About-Card h3 {

    margin-top: 2rem;
    margin-bottom: 0.8rem;

    color: white;
}

.About-Card p {

    font-size: 1.08rem;

    line-height: 1.9;

    color: #d0d5df;

    max-width: 900px;

    margin:
        0 auto
        1.2rem auto;
}

.About-Card ul {

    list-style: none;

    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.About-Card li {

    display: flex;

    align-items: flex-start;

    gap: 1rem;

    padding: 1rem 1.2rem;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.03);

    border:
        1px solid rgba(255,255,255,0.04);

    color: #d6dae3;
}

.About-Card strong {
    color: white;
}

.feature-icon {

    color: var(--accent);

    font-weight: 700;

    font-size: 1.1rem;

    min-width: 20px;
}

/* =========================================
   SECTION BREAK
========================================= */

.PBreak {

    height: 1px;

    width: 80%;

    margin: 10px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212,175,55,0.7),
            transparent
        );
}

/* =========================================
   PRICING SECTION
========================================= */

.p-table {

    max-width: var(--max-width);

    margin: 80px auto;

    padding: 0 1rem;
}

.p-table__toggle-container {

    display: flex;

    justify-content: center;

    margin-bottom: 3rem;
}

/* =========================================
   TOGGLE SWITCH
========================================= */

:root {

    --radio-switch-width: 210px;
    --radio-switch-height: 52px;
    --radio-switch-padding: 4px;
    --radio-switch-radius: 999px;
}

.radio-switch {

    position: relative;

    display: inline-flex;

    padding: var(--radio-switch-padding);

    border-radius: var(--radio-switch-radius);

    border: 1px solid var(--border);

    background: var(--bg-card);

    overflow: hidden;
}

.radio-switch__item {

    position: relative;

    width:
        calc(var(--radio-switch-width) * 0.5);

    height:
        calc(var(--radio-switch-height));
}

.radio-switch__label {

    display: flex;

    align-items: center;
    justify-content: center;

    height: 100%;

    border-radius: var(--radio-switch-radius);

    cursor: pointer;

    transition: var(--transition);

    color: var(--text-secondary);

    font-weight: 600;
}

.radio-switch__input:checked ~ .radio-switch__label {

    background: var(--accent);

    color: black;
}

/* =========================================
   PRICING GRID
========================================= */

.p-table__grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 2rem;
}

/* Pricing Cards */

.p-table__item {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 2.5rem;

    display: flex;
    flex-direction: column;

    transition: var(--transition);

    box-shadow: var(--shadow);
}

.p-table__item:hover {

    transform: translateY(-5px);

    border-color:
        rgba(212,175,55,0.25);
}

.p-table__item--popular {

    border: 2px solid var(--accent);

    transform: scale(1.03);
}

/* Header */

.p-table__header-row {

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.p-table__title {

    font-size: 2rem;

    color: white;

    margin-bottom: 1rem;
}

.p-table__badge {

    background: var(--accent);

    color: black;

    padding:
        0.35rem
        0.8rem;

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 700;
}

/* Prices */

.p-table__price-wrapper {

    position: relative;

    overflow: hidden;

    height: 4.5rem;

    margin-bottom: 2rem;
}

.p-table__price {

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.p-table__price span {

    font-size: 3rem;

    font-weight: 800;

    color: white;
}

.p-table__price i {

    font-style: normal;

    color: var(--text-muted);
}

.p-table__price--month {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
}

.p-table__price--year {

    opacity: 0;

    transform: translateY(100%);
}

.p-table--show-yearly .p-table__price--month {

    opacity: 0;

    transform: translateY(-100%);
}

.p-table--show-yearly .p-table__price--year {

    opacity: 1;

    transform: translateY(0);
}

/* Features */

.p-table__features--year {
    display: none;
}

.p-table--show-yearly .p-table__features--month {
    display: none;
}

.p-table--show-yearly .p-table__features--year {
    display: block;
}

.p-table__features li {

    padding:
        0.8rem 0;

    border-bottom:
        1px solid rgba(255,255,255,0.05);
}

/* =========================================
   FAQ SECTION
========================================= */

.About-Card h3 {

    font-size: 1.25rem;

    color: white;

    margin-top: 2rem;

    margin-bottom: 0.8rem;

    padding-left: 1rem;

    border-left:
        3px solid var(--accent);
}

/* =========================================
   CONTACT SECTION (OAKSTONE FIXED)
========================================= */

.contact-card {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* INPUTS */
input,
select,
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* BILLING TOGGLE */
.toggle-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.toggle-option {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    display: block;
    text-align: center;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.toggle-option input:checked + span {
    background: var(--accent);
    color: black;
}

/* ADD-ONS */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.addon-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
}

.addon-box input {
    accent-color: var(--accent);
    transform: scale(1.2);
}

/* PRICE BOX */
.price-box {
    text-align: center;
    padding: 1.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.price-box h3 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* HIDDEN */
.hidden {
    display: none !important;
}

.price-breakdown{
    margin-top:10px;
    font-size:0.95rem;
    color:#bfc6d4;
}

.price-breakdown:first-of-type{
    margin-top:20px;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .toggle-group,
    .addon-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

.addon-box {
    display: flex;
    align-items: center;   /* FIX: vertically centers checkbox + text */
    gap: 12px;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
}

.addon-box input {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

/* ensures text stays aligned properly */
.addon-box span {
    line-height: 1;
    display: inline-block;
    color: var(--text-secondary);
}

.contact-btn {
    display: block;
    margin: 2.5rem auto 0 auto;  /* centers button */
    width: 60%;
    max-width: 320px;
    text-align: center;
}

/* mobile full width */
@media (max-width: 700px) {
    .contact-btn {
        width: 100%;
    }
}

.fade-card {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.fade-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FOOTER
========================================= */

footer {

    margin-top: 100px;

    padding:
        3rem
        2rem;

    background: #0b0d11;

    border-top:
        1px solid var(--border);
}

.Footer-Info {

    list-style: none;

    margin-bottom: 0.8rem;

    color: var(--text-secondary);
}

.Footer-Info a {

    color: var(--text-secondary);

    text-decoration: none;

    transition: var(--transition);
}

.Footer-Info a:hover {

    color: var(--accent);
}

.footer-bottom {

    background: black;

    padding: 1rem;

    text-align: center;
}

.footer-bottom p {

    margin: 0;

    color: var(--text-muted);
}

/* =========================================
   ACCESSIBILITY
========================================= */

.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    border: 0;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .Hero img {
        height: 75vh;
    }

    .Hero-Content p {
        font-size: 1rem;
    }

    .About-Card {
        padding: 2rem;
    }

    .p-table__item--popular {
        transform: none;
    }
}

@media (max-width: 600px) {

    .Hero img {
        height: 70vh;
    }

    .Hero-Content h1 {
        font-size: 2.2rem;
    }

    .Hero-Content p {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
    }

    .p-table__item {
        padding: 2rem;
    }
}
